<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
	template="/WEB-INF/templates/template.xhtml">
			
	<ui:define name="breadcrumb">
		<ui:include src="breadcrumb.xhtml" />
	</ui:define>
	<ui:define name="menu">
		<ui:include src="/admin/menu.xhtml" />
	</ui:define>
	<ui:define name="title"><h:outputText value="#{messages.adminDatosTitle}"/></ui:define>
	<ui:define name="content">
		<h:form id="form">
			<h:panelGroup layout="block" styleClass="tableDerecha">
				<h:panelGroup layout="block" styleClass="tableDerecha-header">
					<h:outputText value="#{messages.cntxMenuProvincia}" />
				</h:panelGroup>
				<h:panelGroup layout="block" styleClass="tableDerecha-item">
					<h:commandLink value="#{messages.cntxMenuProvinciaAlta}" 
						action="#{provinciaBean.showCreate}">
						<f:setPropertyActionListener value="#{facesContext.viewRoot.viewId}" 
							target="#{provinciaBean.persistReturnView}" />
					</h:commandLink>
				</h:panelGroup>
				<h:panelGroup layout="block" styleClass="tableDerecha-item">
					<h:commandLink value="#{messages.cntxMenuProvinciaConsulta}" 
						action="#{provinciaBean.showSearch}">
						<f:setPropertyActionListener value="#{facesContext.viewRoot.viewId}" 
							target="#{provinciaBean.persistReturnView}" />
					</h:commandLink>
				</h:panelGroup>
			</h:panelGroup>
				
			<h:panelGroup layout="block" styleClass="tableDerecha-seperator"/>

			<h:panelGroup layout="block" styleClass="tableDerecha">
				<h:panelGroup layout="block" styleClass="tableDerecha-header">
					<h:outputText value="#{messages.cntxMenuPais}" />
				</h:panelGroup>
				<h:panelGroup layout="block" styleClass="tableDerecha-item">
					<h:commandLink value="#{messages.cntxMenuPaisAlta}" 
						action="#{paisBean.showCreate}">
						<f:setPropertyActionListener value="#{facesContext.viewRoot.viewId}" 
							target="#{paisBean.persistReturnView}" />
					</h:commandLink>
				</h:panelGroup>
				<h:panelGroup layout="block" styleClass="tableDerecha-item">
					<h:commandLink value="#{messages.cntxMenuPaisConsulta}" 
						action="#{paisBean.showSearch}">
						<f:setPropertyActionListener value="#{facesContext.viewRoot.viewId}" 
							target="#{paisBean.persistReturnView}" />
					</h:commandLink>
				</h:panelGroup>
			</h:panelGroup>
		</h:form>	
	</ui:define>	
</ui:composition>
